package com.jms.product.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jms.common.utils.PageUtils;
import com.jms.common.utils.Query;

import com.jms.product.dao.BrandInfoDao;
import com.jms.product.entity.BrandInfoEntity;
import com.jms.product.service.BrandInfoService;


@Service("brandInfoService")
public class BrandInfoServiceImpl extends ServiceImpl<BrandInfoDao, BrandInfoEntity> implements BrandInfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BrandInfoEntity> page = this.page(
                new Query<BrandInfoEntity>().getPage(params),
                new QueryWrapper<BrandInfoEntity>()
        );

        return new PageUtils(page);
    }

}